package com.yisu.auction.api.web.controller;

import com.yisu.auction.api.web.interceptor.IAuthVerifyAnnotation;
import com.yisu.auction.ewf.common.enums.LoginTypeEnum;
import com.yisu.auction.ewf.common.web.JsonResult;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * author: 赵杰
 * Business Description：
 * createTime：2017/9/13
 */
@RequestMapping("/healthCheck")
@Controller
public class HealthCheckController {
    /**
     * 健康轮询检查-为阿里云slb提供探测服务
     *
     * @return json
     * @paramtoken接收参数
     */
    @RequestMapping(value = "/checkStatus", method = {RequestMethod.POST,RequestMethod.GET}, produces = "application/json; charset=utf-8")
    @ResponseBody
    @IAuthVerifyAnnotation(Desc = "登录验证", LoginTypeEnum = LoginTypeEnum.NO_NEED_LOGIN)
    public JsonResult checkStatus() {
        return new JsonResult();
    }
}
